//
//  WidgetExtension.swift
//  WidgetExample
//
//  Created by Ben on 2022/4/10.
//  Copyright © 2022 Ben. All rights reserved.
//

import SwiftUI

//enum WidgetType: String, Codable, CaseIterable {
//    case time
//    case moments
//    case goodsPriceChange
//    
//    var kind: String {
//        
//        switch self {
//        case .time:
//            return "TimeWidgetExtension"
//        case .moments:
//            return "MomentsWidgetExtension"
//        case .goodsPriceChange:
//            return "GoodsPriceChangeWidgetExtension"
//        }
//    }
//}


@main
struct WidgetGroups: WidgetBundle {
    @WidgetBundleBuilder
    var body: some Widget {
        
        TimeWidget()
        MomentsWidget()
    }
}
